package factory.factorymethod;

/**
 * @author 若雨成霜
 * @Created with IDEA
 * 工厂模式
 */

public class TestFactoryMethod {
    public static void main(String[] args) {
        BaseFactory factory = new PenFactory();
        Product product = factory.produce();
        product.doSomething();
    }
}
